package com.example.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

//声明当前类为Spring配置类，用来替换applicationContext.xml文件
@Configuration
//设置bean扫描路径，多个路径书写为字符串数组格式
//用来替换配置文件中的<context:component-scan base-package=""/>
@ComponentScan({"com.example.service", "com.example.dao"})
public class SpringConfig {
}
